package com.my.test.service.invest_order.service.impl;

import com.my.test.service.invest_order.dao.InvestOrderDao;
import com.my.test.service.invest_order.model.InvestOrder;
import com.my.test.service.invest_order.service.InvestOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service(value = "investOrderService")
public class InvestOrderServiceImpl implements InvestOrderService {

    @Autowired
    private InvestOrderDao investOrderDao;

    @Override
    public void insertByBatch(List<InvestOrder> investOrders) {
        investOrderDao.insertByBatch(investOrders);
    }
}